from __future__ import division
import os

outputFileName = "/data1/team/obukai/machine-learning-project-related/auxFiles/threadPathMappingTableForGov2"
outputFileHandler = open(outputFileName,"w")

for dirname, dirnames, filenames in os.walk('/data/jhe/trecdata'):
    # print len(dirnames)
    dirnames.sort()
    for subdirname in dirnames:
        print subdirname
        outputFileHandler.write(subdirname + "\n")

outputFileHandler.close()
